//
//  BaseNavigationController.m
//  worthVote
//
//  Created by kingboyrang on 2021/4/12.
//  Copyright © 2021 wulanzhou. All rights reserved.
//

#import "BaseNavigationController.h"
#import "UINavigationBar+handle.h"

@interface BaseNavigationController ()

@end

@implementation BaseNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //设置导航标题
    [self.navigationBar navBarTitleColor:[UIColor whiteColor] font:[UIFont boldSystemFontOfSize:20]];
    //设置导般背景色
    //[self.navigationBar setBackgroundImage:[UIImage createImageWithColor:[UIColor colorWithHex:0xf44336 alpha:0.2]] forBarMetrics:UIBarMetricsDefault];
    [self.navigationBar setBackgroundImage:[UIImage createImageWithColor:[UIColor colorWithHex:0xf44336 alpha:1.0]] forBarMetrics:UIBarMetricsDefault];
           
   //设置返回键颜色
   self.navigationBar.tintColor = [UIColor whiteColor];
    
    // Do any additional setup after loading the view.
}



/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
